/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.sales.generics.client.request;

import br.com.sales.generics.client.log.LogBrowser;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.Response;

/**
 *
 * @author v
 */
public abstract class HannaRequestCallback implements RequestCallback {

    @Override
    public abstract void onResponseReceived(Request request, Response response);

    @Override
    public void onError(Request request, Throwable exception) {
        LogBrowser.write("Request server with errors: " + exception.getMessage());
    }
}
